var mysql      = require('mysql');
var connection = mysql.createConnection({
  host     : 'localhost',
  user     : 'root',
  password : '123456',
  database : 'test'
});



  connection.connect();
var addSql = 'INSERT INTO user(username,password,isvip)  VALUES(?,?,?)';
var addSqlParams = ["aa", "123qwe5", 1];
  
  connection.query(addSql,addSqlParams,function (err, result) {
          if(err){
            console.log('[SELECT ERROR] - ',err.message);
            return;
          }
   
         console.log('--------------------------SELECT----------------------------');
         console.log(result);
         console.log('------------------------------------------------------------\n\n');  
  });
  connection.end();

